package zl.io;
import java.io.OutputStream;
import java.io.InputStream;
import java.io.ByteArrayOutputStream;
import java.io.ByteArrayInputStream;
import java.io.IOException;

public class IODemo05
{
	public static void main(String[] args) throws IOException
	{
		String str = "zhangle";
		OutputStream out = new ByteArrayOutputStream();
		InputStream in = new ByteArrayInputStream(str.getBytes());
		int temp = 0;
		while((temp = in.read()) != -1)
		{
			char c = (char)temp;
			out.write(Character.toUpperCase(c));
		}
		String result = out.toString();
		System.out.println(result);
	}
}